<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QSystemLocale Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QSystemLocale Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1><p>The QSystemLocale class can be used to finetune the system locale of the user. <a href="#details">More...</a></p>
<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qsystemlocale.html#QueryType-enum">QueryType</a></b> { LanguageId, CountryId, DecimalPoint, GroupSeparator, ..., PMText }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qsystemlocale.html#QSystemLocale">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qsystemlocale.html#QSystemLocale-2">__init__</a></b> (<i>self</i>, QSystemLocale)</li><li><div class="fn" />QLocale <b><a href="qsystemlocale.html#fallbackLocale">fallbackLocale</a></b> (<i>self</i>)</li><li><div class="fn" />QVariant <b><a href="qsystemlocale.html#query">query</a></b> (<i>self</i>, QueryType, QVariant)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QSystemLocale class can be used to finetune the system locale of the user.</p>
<p><b>Warning:</b> This class is only useful in very rare cases. Usually <a href="qlocale.html">QLocale</a> offers all the functionality required for application development.</p>
<p>QSystemLocale allows to override the values provided by the system locale (<a href="qlocale.html#system">QLocale.system</a>()).</p>
<p>See also <a href="qlocale.html">QLocale</a>.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="QueryType-enum" />QSystemLocale.QueryType</h3><p>Specifies the type of information queried by <a href="qsystemlocale.html#query">query</a>(). For each value the type of information to return from the <a href="qsystemlocale.html#query">query</a>() method is listed.</p>
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QSystemLocale.LanguageId</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">a uint specifying the language.</td></tr>
<tr><td valign="top"><tt>QSystemLocale.CountryId</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">a uint specifying the country.</td></tr>
<tr><td valign="top"><tt>QSystemLocale.DecimalPoint</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the decimal point.</td></tr>
<tr><td valign="top"><tt>QSystemLocale.GroupSeparator</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the group separator.</td></tr>
<tr><td valign="top"><tt>QSystemLocale.ZeroDigit</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the zero digit.</td></tr>
<tr><td valign="top"><tt>QSystemLocale.NegativeSign</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the minus sign.</td></tr>
<tr><td valign="top"><tt>QSystemLocale.PositiveSign</tt></td><td align="center" valign="top"><tt>23</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the plus sign.</td></tr>
<tr><td valign="top"><tt>QSystemLocale.DateFormatLong</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the long date format</td></tr>
<tr><td valign="top"><tt>QSystemLocale.DateFormatShort</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the short date format</td></tr>
<tr><td valign="top"><tt>QSystemLocale.TimeFormatLong</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the long time format</td></tr>
<tr><td valign="top"><tt>QSystemLocale.TimeFormatShort</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the short time format</td></tr>
<tr><td valign="top"><tt>QSystemLocale.DayNameLong</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the name of a weekday. the in variant contains an integer between 1 and 7 (Monday - Sunday)</td></tr>
<tr><td valign="top"><tt>QSystemLocale.DayNameShort</tt></td><td align="center" valign="top"><tt>11</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the short name of a weekday. the in variant contains an integer between 1 and 7 (Monday - Sunday)</td></tr>
<tr><td valign="top"><tt>QSystemLocale.MonthNameLong</tt></td><td align="center" valign="top"><tt>12</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the name of a month. the in variant contains an integer between 1 and 12</td></tr>
<tr><td valign="top"><tt>QSystemLocale.MonthNameShort</tt></td><td align="center" valign="top"><tt>13</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the short name of a month. the in variant contains an integer between 1 and 12</td></tr>
<tr><td valign="top"><tt>QSystemLocale.DateToStringLong</tt></td><td align="center" valign="top"><tt>14</tt></td><td valign="top">converts the <a href="qdate.html">QDate</a> stored in the in variant to a <a href="qstring.html">QString</a> using the long date format</td></tr>
<tr><td valign="top"><tt>QSystemLocale.DateToStringShort</tt></td><td align="center" valign="top"><tt>15</tt></td><td valign="top">converts the <a href="qdate.html">QDate</a> stored in the in variant to a <a href="qstring.html">QString</a> using the short date format</td></tr>
<tr><td valign="top"><tt>QSystemLocale.TimeToStringLong</tt></td><td align="center" valign="top"><tt>16</tt></td><td valign="top">converts the <a href="qtime.html">QTime</a> stored in the in variant to a <a href="qstring.html">QString</a> using the long time format</td></tr>
<tr><td valign="top"><tt>QSystemLocale.TimeToStringShort</tt></td><td align="center" valign="top"><tt>17</tt></td><td valign="top">converts the <a href="qtime.html">QTime</a> stored in the in variant to a <a href="qstring.html">QString</a> using the short time format</td></tr>
<tr><td valign="top"><tt>QSystemLocale.DateTimeFormatLong</tt></td><td align="center" valign="top"><tt>18</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the long date time format</td></tr>
<tr><td valign="top"><tt>QSystemLocale.DateTimeFormatShort</tt></td><td align="center" valign="top"><tt>19</tt></td><td valign="top">a <a href="qstring.html">QString</a> specifying the short date time format</td></tr>
<tr><td valign="top"><tt>QSystemLocale.DateTimeToStringLong</tt></td><td align="center" valign="top"><tt>20</tt></td><td valign="top">converts the <a href="qdatetime.html">QDateTime</a> in the in variant to a <a href="qstring.html">QString</a> using the long datetime format</td></tr>
<tr><td valign="top"><tt>QSystemLocale.DateTimeToStringShort</tt></td><td align="center" valign="top"><tt>21</tt></td><td valign="top">converts the <a href="qdatetime.html">QDateTime</a> in the in variant to a <a href="qstring.html">QString</a> using the short datetime format</td></tr>
<tr><td valign="top"><tt>QSystemLocale.MeasurementSystem</tt></td><td align="center" valign="top"><tt>22</tt></td><td valign="top">a <a href="qlocale.html#MeasurementSystem-enum">QLocale.MeasurementSystem</a> enum specifying the measurement system</td></tr>
<tr><td valign="top"><tt>QSystemLocale.AMText</tt></td><td align="center" valign="top"><tt>24</tt></td><td valign="top">a string that represents the system AM designator associated with a 12-hour clock.</td></tr>
<tr><td valign="top"><tt>QSystemLocale.PMText</tt></td><td align="center" valign="top"><tt>25</tt></td><td valign="top">a string that represents the system PM designator associated with a 12-hour clock.</td></tr>
</table></p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QSystemLocale" />QSystemLocale.__init__ (<i>self</i>)</h3><p>Constructs a <a href="qsystemlocale.html">QSystemLocale</a> object. The constructor will automatically install this object as the system locale and remove any earlier installed system locales.</p>
<a name="//apple_ref/cpp/instm/QSystemLocale/~QSystemLocale" />
<h3 class="fn"><a name="QSystemLocale-2" />QSystemLocale.__init__ (<i>self</i>, <a href="qsystemlocale.html">QSystemLocale</a>)</h3><h3 class="fn"><a name="fallbackLocale" /><a href="qlocale.html">QLocale</a> QSystemLocale.fallbackLocale (<i>self</i>)</h3><p>Returns the fallback locale obtained from the system.</p>
<p>This function was introduced in Qt 4.6.</p>
<a name="//apple_ref/cpp/instm/QSystemLocale/query" />
<h3 class="fn"><a name="query" />QVariant QSystemLocale.query (<i>self</i>, <a href="qsystemlocale.html#QueryType-enum">QueryType</a>, QVariant)</h3><p>Generic query method for locale data. Provides indirection. Denotes the <i>type</i> of the query with <i>in</i> as input data depending on the query.</p>
<p>See also <a href="qsystemlocale.html#QueryType-enum">QSystemLocale.QueryType</a>.</p>
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;snapshot-4.7.1-5014f7c72a58 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.6.1</td></tr></table></div></address></body></html>